package com.yang.service.Impl;

import com.yang.mapper.SysRoleMapper;
import com.yang.pojo.SysRole;
import com.yang.service.SysRoleService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @Author 杨天可
 * @Date 2021/6/11 10:28
 * @Version 1.0
 */
@Service("sysRoleService")
@Transactional
public class SysRoleServiceImpl implements SysRoleService {
    @Resource
    SysRoleMapper sysRoleMapper;

    @Override
    public SysRole findById(Integer roleId) {
        return sysRoleMapper.selectByPrimaryKey(roleId);
    }
}
